package com.github.wj.web.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018/3/16
 */
@Entity
@Table(name = "T_SJZX_DMJZX")
public class TSjzxDmjzx {
    private Long id;
    private Long fid;
    private Long grade;
    private Long type;
    private String name;
    private String fdncode;
    private String dm;
    private String mc;
    private String sm;
    private String bm;
    private String ssdm;
    private Long ssdmj;
    private Long zt;

    @Id
    @Column(name = "ID")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "FID")
    public Long getFid() {
        return fid;
    }

    public void setFid(Long fid) {
        this.fid = fid;
    }

    @Basic
    @Column(name = "GRADE")
    public Long getGrade() {
        return grade;
    }

    public void setGrade(Long grade) {
        this.grade = grade;
    }

    @Basic
    @Column(name = "TYPE")
    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    @Basic
    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "FDNCODE")
    public String getFdncode() {
        return fdncode;
    }

    public void setFdncode(String fdncode) {
        this.fdncode = fdncode;
    }

    @Basic
    @Column(name = "DM")
    public String getDm() {
        return dm;
    }

    public void setDm(String dm) {
        this.dm = dm;
    }

    @Basic
    @Column(name = "MC")
    public String getMc() {
        return mc;
    }

    public void setMc(String mc) {
        this.mc = mc;
    }

    @Basic
    @Column(name = "SM")
    public String getSm() {
        return sm;
    }

    public void setSm(String sm) {
        this.sm = sm;
    }

    @Basic
    @Column(name = "BM")
    public String getBm() {
        return bm;
    }

    public void setBm(String bm) {
        this.bm = bm;
    }

    @Basic
    @Column(name = "SSDM")
    public String getSsdm() {
        return ssdm;
    }

    public void setSsdm(String ssdm) {
        this.ssdm = ssdm;
    }

    @Basic
    @Column(name = "SSDMJ")
    public Long getSsdmj() {
        return ssdmj;
    }

    public void setSsdmj(Long ssdmj) {
        this.ssdmj = ssdmj;
    }

    @Basic
    @Column(name = "ZT")
    public Long getZt() {
        return zt;
    }

    public void setZt(Long zt) {
        this.zt = zt;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TSjzxDmjzx that = (TSjzxDmjzx) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(fid, that.fid) &&
                Objects.equals(grade, that.grade) &&
                Objects.equals(type, that.type) &&
                Objects.equals(name, that.name) &&
                Objects.equals(fdncode, that.fdncode) &&
                Objects.equals(dm, that.dm) &&
                Objects.equals(mc, that.mc) &&
                Objects.equals(sm, that.sm) &&
                Objects.equals(bm, that.bm) &&
                Objects.equals(ssdm, that.ssdm) &&
                Objects.equals(ssdmj, that.ssdmj) &&
                Objects.equals(zt, that.zt);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, fid, grade, type, name, fdncode, dm, mc, sm, bm, ssdm, ssdmj, zt);
    }
}
